package com.farm.common.util;

import cn.hutool.core.util.ObjectUtil;
import lombok.Data;

@Data
public class PageParaPO {
	private Integer size = 10;
	private Integer current = 1;

	public PageParaPO() {
	}

	public PageParaPO(Integer current, Integer size) {
		if (ObjectUtil.isNotEmpty(current) && current > 0) {
			this.current = current;
		}
		if (ObjectUtil.isNotEmpty(size) && (size > 0) || size == -1) {
			this.size = size;
		}
	}
}